98ccff
@@ -119,11 +119,7 @@
public abstract class CamelServletContextListener<R extends Registry> implements
                 throw new RuntimeException("Error creating CamelContextLifecycle class with name " + lifecycle, e);
             }
         }
-        // just log if we could not use all the parameters, as they may be used by others
-        if (!map.isEmpty()) {
-            LOG.info("There are {} ServletContext init parameters, unknown to Camel. Maybe they are used by other frameworks? [{}]", map.size(), map);
-        }
-
+        
         try {
             if (camelContextLifecycle != null) {
                 camelContextLifecycle.beforeAddRoutes(camelContext, registry);
@@ -167,6 +163,11 @@
public abstract class CamelServletContextListener<R extends Registry> implements
                 throw new IllegalArgumentException("Unsupported route: " + route);
             }
         }
+        
+        // just log if we could not use all the parameters, as they may be used by others
+        if (!map.isEmpty()) {
+            LOG.info("There are {} ServletContext init parameters, unknown to Camel. Maybe they are used by other frameworks? [{}]", map.size(), map);
+        }
 
         try {
             if (camelContextLifecycle != null) {
